package cn.rkylin.oms.system.stockpush.dao;

import java.util.List;

import com.github.pagehelper.PageInfo;

import cn.rkylin.oms.system.stockpush.domain.StockFmlaRatioSku;
import cn.rkylin.oms.system.stockpush.vo.StockFmlaRatioSkuVO;

public interface IStockFmlaRatioSkuDAO {
    int deleteByPrimaryKey(String ratioId) throws Exception;

    int insert(StockFmlaRatioSku record) throws Exception;

    int insertSelective(StockFmlaRatioSku record) throws Exception;

    StockFmlaRatioSku selectByPrimaryKey(String ratioId) throws Exception;

    int updateByPrimaryKeySelective(StockFmlaRatioSku record) throws Exception;

    int updateByPrimaryKey(StockFmlaRatioSku record) throws Exception;

    /**
     * getDistinckSetSku:查询设置了库存推送比例的商品的列表. <br/>
     *
     * @author zhanghao
     * @param page 页数
     * @param length 每页数据条数
     * @param stockFmlaRatioSkuVO 查询条件
     * @return
     * @throws Exception 
     * @since JDK 1.6
     */
    List<StockFmlaRatioSkuVO> getDistinckSetSku(int page, int length, StockFmlaRatioSkuVO stockFmlaRatioSkuVO) throws Exception;

    /**
     * selectBySelectiveValue:根据条件查询商品推送比例数据. <br/>
     *
     * @author zhanghao
     * @param StockFmlaRatioSkuVO
     * @return
     * @throws Exception 
     * @since JDK 1.6
     */
    List<StockFmlaRatioSkuVO> selectBySelectiveValue(StockFmlaRatioSkuVO stockFmlaRatioSkuVO) throws Exception;
}